import request from '@/utils/request'
import { commonList, commonAdd, commonEdit, commonBatchDelete, commonDetail } from '../_common'

//api controller根路径，前后不带 /
const controller = 'setting';


export function getSetting() {
  return request({
    url: `/setting`,
    method: 'get'
  })
}

export function getCmmSetting() {
  return request({
    url: `/login/comm-setting`,
    method: 'get'
  })
}

export function putSetting(data) {
  return request({
    url: `/setting`,
    method: 'put',
    data
  })
}
//手机号查重
export function phoneValid(data) {
  return request({
    url: `/comm/phone-valid`,
    method: 'post',
    data
  })
}
//用户登录名查重
export function usernameValid(data) {
  return request({
    url: `/comm/username-valid`,
    method: 'post',
    data
  })
}
